home *** CD-ROM | disk | FTP | other *** search
/ C++ für Kids / C++ for kids.iso / SETUP / US / CBUILDER / DATA.Z / WININET.HPP < prev    next >
C/C++ Source or Header  |  1997-02-13  |  45KB  |  1,070 lines

  1. //----------------------------------------------------------------------------
  2. // WinInet.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
  3. // From: WinInet.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef WinInetHPP
  6. #define WinInetHPP
  7. //----------------------------------------------------------------------------
  8. #include <Windows.hpp>
  9. #include <System.hpp>
  10. #pragma warn -par
  11. #pragma warn -hid 
  12. #pragma warn -inl
  13.  
  14. namespace Wininet
  15. {
  16. //-- type declarations -------------------------------------------------------
  17. typedef void *HINTERNET;
  18.  
  19. typedef void * *PHINTERNET;
  20.  
  21. typedef Word INTERNET_PORT;
  22.  
  23. typedef Word *PINTERNET_PORT;
  24.  
  25. struct TInternetAsyncResult;
  26. typedef TInternetAsyncResult *PInternetAsyncResult;
  27.  
  28. #pragma pack(push, 1)
  29. struct TInternetAsyncResult
  30. {
  31.     int dwResult;
  32.     int dwError;
  33. } ;
  34. #pragma pack(pop)
  35.  
  36. typedef void *TFNInternetStatusCallback;
  37.  
  38. typedef void * *PFNInternetStatusCallback;
  39.  
  40. struct TGopherFindData;
  41. typedef TGopherFindData *PGopherFindData;
  42.  
  43. #pragma pack(push, 1)
  44. struct TGopherFindData
  45. {
  46.     wchar_t DisplayString[128];
  47.     int GopherType;
  48.     int SizeLow;
  49.     int SizeHigh;
  50.     FILETIME LastModificationTime;
  51.     wchar_t Locator[653];
  52. } ;
  53. #pragma pack(pop)
  54.  
  55. struct TGopherAdminAttributeType;
  56. typedef TGopherAdminAttributeType *PGopherAdminAttributeType;
  57.  
  58. #pragma pack(push, 1)
  59. struct TGopherAdminAttributeType
  60. {
  61.     char *Comment;
  62.     char *EmailAddress;
  63. } ;
  64. #pragma pack(pop)
  65.  
  66. struct TGopherModDateAttributeType;
  67. typedef TGopherModDateAttributeType *PGopherModDateAttributeType;
  68.  
  69. #pragma pack(push, 1)
  70. struct TGopherModDateAttributeType
  71. {
  72.     FILETIME DateAndTime;
  73. } ;
  74. #pragma pack(pop)
  75.  
  76. struct TGopherTtlAttributeType;
  77. typedef TGopherTtlAttributeType *PGopherTtlAttributeType;
  78.  
  79. #pragma pack(push, 1)
  80. struct TGopherTtlAttributeType
  81. {
  82.     int Ttl;
  83. } ;
  84. #pragma pack(pop)
  85.  
  86. struct TGopherScoreAttributeType;
  87. typedef TGopherScoreAttributeType *PGopherScoreAttributeType;
  88.  
  89. #pragma pack(push, 1)
  90. struct TGopherScoreAttributeType
  91. {
  92.     int Score;
  93. } ;
  94. #pragma pack(pop)
  95.  
  96. struct TGopherScoreRangeAttributeType;
  97. typedef TGopherScoreRangeAttributeType *PGopherScoreRangeAttributeType;
  98.  
  99. #pragma pack(push, 1)
  100. struct TGopherScoreRangeAttributeType
  101. {
  102.     int LowerBound;
  103.     int UpperBound;
  104. } ;
  105. #pragma pack(pop)
  106.  
  107. struct TGopherSiteAttributeType;
  108. typedef TGopherSiteAttributeType *PGopherSiteAttributeType;
  109.  
  110. #pragma pack(push, 1)
  111. struct TGopherSiteAttributeType
  112. {
  113.     char *Site;
  114. } ;
  115. #pragma pack(pop)
  116.  
  117. struct TGopherOrganizationAttributeType;
  118. typedef TGopherOrganizationAttributeType *PGopherOrganizationAttributeType;
  119.  
  120. #pragma pack(push, 1)
  121. struct TGopherOrganizationAttributeType
  122. {
  123.     char *Organization;
  124. } ;
  125. #pragma pack(pop)
  126.  
  127. struct TGopherLocationAttributeType;
  128. typedef TGopherLocationAttributeType *PGopherLocationAttributeType;
  129.  
  130. #pragma pack(push, 1)
  131. struct TGopherLocationAttributeType
  132. {
  133.     char *Location;
  134. } ;
  135. #pragma pack(pop)
  136.  
  137. struct TGopherGeographicalLocationAttributeType;
  138. typedef TGopherGeographicalLocationAttributeType *PGopherGeographicalLocationAttributeType;
  139.  
  140. #pragma pack(push, 1)
  141. struct TGopherGeographicalLocationAttributeType
  142. {
  143.     int DegreesNorth;
  144.     int MinutesNorth;
  145.     int SecondsNorth;
  146.     int DegreesEast;
  147.     int MinutesEast;
  148.     int SecondsEast;
  149. } ;
  150. #pragma pack(pop)
  151.  
  152. struct TGopherTimezoneAttributeType;
  153. typedef TGopherTimezoneAttributeType *PGopherTimezoneAttributeType;
  154.  
  155. #pragma pack(push, 1)
  156. struct TGopherTimezoneAttributeType
  157. {
  158.     int Zone;
  159. } ;
  160. #pragma pack(pop)
  161.  
  162. struct TGopherProviderAttributeType;
  163. typedef TGopherProviderAttributeType *PGopherProviderAttributeType;
  164.  
  165. #pragma pack(push, 1)
  166. struct TGopherProviderAttributeType
  167. {
  168.     char *Provider;
  169. } ;
  170. #pragma pack(pop)
  171.  
  172. struct TGopherVersionAttributeType;
  173. typedef TGopherVersionAttributeType *PGopherVersionAttributeType;
  174.  
  175. #pragma pack(push, 1)
  176. struct TGopherVersionAttributeType
  177. {
  178.     char *Version;
  179. } ;
  180. #pragma pack(pop)
  181.  
  182. struct TGopherAbstractAttributeType;
  183. typedef TGopherAbstractAttributeType *PGopherAbstractAttributeType;
  184.  
  185. #pragma pack(push, 1)
  186. struct TGopherAbstractAttributeType
  187. {
  188.     char *ShortAbstract;
  189.     char *AbstractFile;
  190. } ;
  191. #pragma pack(pop)
  192.  
  193. struct TGopherViewAttributeType;
  194. typedef TGopherViewAttributeType *PGopherViewAttributeType;
  195.  
  196. #pragma pack(push, 1)
  197. struct TGopherViewAttributeType
  198. {
  199.     char *ContentType;
  200.     char *Language;
  201.     int Size;
  202. } ;
  203. #pragma pack(pop)
  204.  
  205. struct TGopherVeronicaAttributeType;
  206. typedef TGopherVeronicaAttributeType *PGopherVeronicaAttributeType;
  207.  
  208. #pragma pack(push, 1)
  209. struct TGopherVeronicaAttributeType
  210. {
  211.     DWord TreeWalk;
  212. } ;
  213. #pragma pack(pop)
  214.  
  215. struct TGopherAskAttributeType;
  216. typedef TGopherAskAttributeType *PGopherAskAttributeType;
  217.  
  218. #pragma pack(push, 1)
  219. struct TGopherAskAttributeType
  220. {
  221.     char *QuestionType;
  222.     char *QuestionText;
  223. } ;
  224. #pragma pack(pop)
  225.  
  226. struct TGopherUnknownAttributeType;
  227. typedef TGopherUnknownAttributeType *PGopherUnknownAttributeType;
  228.  
  229. #pragma pack(push, 1)
  230. struct TGopherUnknownAttributeType
  231. {
  232.     char *Text;
  233. } ;
  234. #pragma pack(pop)
  235.  
  236. struct TGopherAttributeType;
  237. typedef TGopherAttributeType *PGopherAttributeType;
  238.  
  239. #pragma pack(push, 1)
  240. struct TGopherAttributeType
  241. {
  242.     int CategoryId;
  243.     int AttributeId;
  244.     union
  245.     {
  246.         TGopherUnknownAttributeType Unknown;
  247.         TGopherAskAttributeType Ask;
  248.         TGopherVeronicaAttributeType Veronica;
  249.         TGopherViewAttributeType View;
  250.         TGopherAbstractAttributeType Abstract;
  251.         TGopherVersionAttributeType Version;
  252.         TGopherProviderAttributeType Provider;
  253.         TGopherTimezoneAttributeType TimeZone;
  254.         TGopherGeographicalLocationAttributeType GeographicalLocation;
  255.         TGopherLocationAttributeType Location;
  256.         TGopherOrganizationAttributeType Organization;
  257.         TGopherSiteAttributeType Site;
  258.         TGopherScoreRangeAttributeType ScoreRange;
  259.         TGopherScoreAttributeType Score;
  260.         TGopherTtlAttributeType Ttl;
  261.         TGopherModDateAttributeType ModDate;
  262.         TGopherAdminAttributeType Admin;
  263.         
  264.     };
  265. } ;
  266. #pragma pack(pop)
  267.  
  268. typedef void *TFNGopherAttributeEnumerator;
  269.  
  270. typedef void * *PFNGopherAttributeEnumerator;
  271.  
  272. //-- var, const, procedure ---------------------------------------------------
  273. #define INTERNET_INVALID_PORT_NUMBER (Byte)(0)
  274. #define INTERNET_DEFAULT_FTP_PORT (Byte)(21)
  275. #define INTERNET_DEFAULT_GOPHER_PORT (Byte)(70)
  276. #define INTERNET_DEFAULT_HTTP_PORT (Byte)(80)
  277. #define INTERNET_MAX_HOST_NAME_LENGTH (Word)(256)
  278. #define INTERNET_MAX_USER_NAME_LENGTH (Byte)(128)
  279. #define INTERNET_MAX_PASSWORD_LENGTH (Byte)(128)
  280. #define INTERNET_MAX_PORT_NUMBER_LENGTH (Byte)(5)
  281. #define INTERNET_MAX_PORT_NUMBER_VALUE (int)(65535)
  282. #define INTERNET_MAX_PATH_LENGTH (Word)(1024)
  283. #define INTERNET_MAX_PROTOCOL_NAME "gopher"
  284. #define INTERNET_MAX_URL_LENGTH (Word)(1031)
  285. #define INTERNET_KEEP_ALIVE_UNKNOWN (Shortint)(-1)
  286. #define INTERNET_KEEP_ALIVE_ENABLED (Byte)(1)
  287. #define INTERNET_KEEP_ALIVE_DISABLED (Byte)(0)
  288. #define INTERNET_REQFLAG_FROM_CACHE (Byte)(1)
  289. #define INTERNET_REQFLAG_ASYNC (Byte)(2)
  290. #define INTERNET_FLAG_RELOAD (int)(-2147483648)
  291. #define INTERNET_FLAG_RAW_DATA (int)(1073741824)
  292. #define INTERNET_FLAG_EXISTING_CONNECT (int)(536870912)
  293. #define INTERNET_FLAG_ASYNC (int)(268435456)
  294. #define INTERNET_FLAG_PASSIVE (int)(134217728)
  295. #define INTERNET_FLAG_DONT_CACHE (int)(67108864)
  296. #define INTERNET_FLAG_MAKE_PERSISTENT (int)(33554432)
  297. #define INTERNET_FLAGS_MASK (int)(-33554432)
  298. #define INTERNET_OPTIONS_MASK (int)(33554431)
  299. #define INTERNET_NO_CALLBACK (Byte)(0)
  300. #define PRE_CONFIG_INTERNET_ACCESS (Byte)(0)
  301. #define LOCAL_INTERNET_ACCESS (Byte)(1)
  302. #define GATEWAY_INTERNET_ACCESS (Byte)(2)
  303. #define CERN_PROXY_INTERNET_ACCESS (Byte)(3)
  304. #define INTERNET_SERVICE_FTP (Byte)(1)
  305. #define INTERNET_SERVICE_GOPHER (Byte)(2)
  306. #define INTERNET_SERVICE_HTTP (Byte)(3)
  307. #define INTERNET_OPTION_CALLBACK (Byte)(1)
  308. #define INTERNET_OPTION_CONNECT_TIMEOUT (Byte)(2)
  309. #define INTERNET_OPTION_CONNECT_RETRIES (Byte)(3)
  310. #define INTERNET_OPTION_CONNECT_BACKOFF (Byte)(4)
  311. #define INTERNET_OPTION_SEND_TIMEOUT (Byte)(5)
  312. #define INTERNET_OPTION_CONTROL_SEND_TIMEOUT (Byte)(5)
  313. #define INTERNET_OPTION_RECEIVE_TIMEOUT (Byte)(6)
  314. #define INTERNET_OPTION_CONT